import seekfree

def tim1_callback(s):
    ph2.toggle()
    pb13.toggle()

pb13 = seekfree.GPIO(0x1D, 1, 1)
ph2 = seekfree.GPIO(0x72, 1, 1)

ph2.toggle()

tim1 = seekfree.TIMER(500)
tim1.callback(tim1_callback)

N = 1
while 1:
    N += 1
    if N:
        N=0

